import Vue from 'vue'// 引入Vue

import 'normalize.css/normalize.css' // 重置样式 它让不同的浏览器在渲染网页元素的时候形式更统一

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css' // 全局

import '@/styles/index.scss' // global css

import App from './App'
import store from './store'
import router from './router'

import '@/icons' // icon
import '@/permission' // permission control
import * as directives from '@/directives/index.js'
Object.keys(directives).forEach(key => {
  Vue.directive(key, directives[key])
})

Vue.use(ElementUI)

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router,
  store,
  render: h => h(App)
})
